﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="MessageList.aspx.cs" Inherits="CSC440TeamOne.Admin.Views.MessageList"
    Title="MessageList" MasterPageFile="~/Shared/DefaultMaster.master" %>

<asp:Content runat="server" ContentPlaceHolderID="HeadContent">
    <script runat="server">

        protected void SendMail_Click(object sender, EventArgs e)
        {
            if (TextTo != null && TextBody != null)
            {
                labelMessage.Text = "Your Message has been sent.";
            }
        }
    </script>
</asp:Content>
<asp:Content ID="content" ContentPlaceHolderID="DefaultContent" runat="Server">
    <h1>
        MessageList</h1>
    <div class="style1">
        To:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextTo" runat="server"></asp:TextBox>
    </div>
    <div class="style1">
        Subject:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextSubject" runat="server"></asp:TextBox>
    </div>
    <div class="style1">
        Body:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </div>
    <p style="text-align: left">
        <asp:TextBox ID="TextBody" runat="server" Height="148px" Width="344px"></asp:TextBox>
    </p>
    <p style="text-align: left">
        <asp:Label ID="labelMessage" runat="server" Text=" "></asp:Label>
    </p>
    <p style="text-align: left">
        <asp:Button ID="SendMail" runat="server" Text="Send" OnClick="SendMail_Click" />
    </p>
</asp:Content>
